Builder

Builder class for Action objects.

Constructors

Link copied to clipboard
constructor(@Nullable icon: IconCompat, @Nullable title: CharSequence, @Nullable intent: PendingIntent)
Construct a new builder for Action object.
constructor(icon: Int, @Nullable title: CharSequence, @Nullable intent: PendingIntent)
Construct a new builder for Action object.
constructor(@NonNull action: NotificationCompat.Action)
Construct a new builder for Action object using the fields from an Action.

Functions

Link copied to clipboard
Merge additional metadata into this builder.
Link copied to clipboard
Add an input to be collected from the user when this action is sent.
Link copied to clipboard
Combine all of the options that have been set and return a new Action object.
Link copied to clipboard
Apply an extender to this action builder.
Link copied to clipboard
Get the metadata Bundle used by this Builder.
Link copied to clipboard
Set whether the platform should automatically generate possible replies to add to getChoices.
Link copied to clipboard
From API 31, sets whether the OS should only send this action's PendingIntent on an unlocked device.
Link copied to clipboard
Sets whether this Action is a contextual action, i.e.
Link copied to clipboard
Link copied to clipboard
Set whether or not this Action's PendingIntent will open a user interface.